﻿using FangChanCrm.Services.Interface;
using FangChanCrmEF;
using Maticsoft.Model;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace FangChanCrm.Services.Realization
{
    public class t_XiaoXiTiXingBiaoService : It_XiaoXiTiXingBiaoService
    {
        private readonly MyContext _context;

        public t_XiaoXiTiXingBiaoService(MyContext context)
        {
            _context = context;
        }

        public t_XiaoXiTiXingBiao GetById(int id)
        {
            return _context.t_XiaoXiTiXingBiao.FirstOrDefault(x => x.Id == id);
        }

        public List<t_XiaoXiTiXingBiao> GetList()
        {
            return _context.t_XiaoXiTiXingBiao.ToList();
        }



    }
}
